<Query Kind="Program" />

void Main()
{
	String filePath = @"D:\Projects\DAPT\src\config\service\xxxxx12121\新建文件\service-affix.xml";
	System.Diagnostics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
}

// Define other methods and classes here
	// 打开所处的目录, 并选中该文件
 bool ExploreFile(string filePath) {
	// https://stackoverflow.com/questions/13680415/how-to-open-explorer-with-a-specific-file-selected
    if (!System.IO.File.Exists(filePath)) {
        return false;
    }
    //Clean up file path so it can be navigated OK
    filePath = System.IO.Path.GetFullPath(filePath);
    System.Diagonstics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
    return true;
}

 bool openFileWithSpecialExe(){
	String exePath = @"C:\Program Files (x86)\Notepad++\notepad++.exe";
	System.Diagnostics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
}